<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TImageValue类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_image_value.html">TImageValue</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_image_value-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TImageValue类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TImageValue 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_image_value.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4376109625a189b22ec6e358d798c89d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a4376109625a189b22ec6e358d798c89d">TImageValue</a> (long nativeObj)</td></tr>
<tr class="separator:a4376109625a189b22ec6e358d798c89d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6aa2c6c37a37924b9a763809dfe41b54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a6aa2c6c37a37924b9a763809dfe41b54">setImage</a> (String image)</td></tr>
<tr class="separator:a6aa2c6c37a37924b9a763809dfe41b54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a990a3616d13f4f86262e392eb66fa44f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a990a3616d13f4f86262e392eb66fa44f">setFormat</a> (String format)</td></tr>
<tr class="separator:a990a3616d13f4f86262e392eb66fa44f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a6169a428829e86dfd525310d39b1a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a7a6169a428829e86dfd525310d39b1a3">setClickAddDelta</a> (double delta)</td></tr>
<tr class="separator:a7a6169a428829e86dfd525310d39b1a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35faeaf6aa25b746a8d9e4b743be10e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a35faeaf6aa25b746a8d9e4b743be10e5">setValue</a> (double value)</td></tr>
<tr class="separator:a35faeaf6aa25b746a8d9e4b743be10e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35fe1998ca2e30945596772741e4d4ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a35fe1998ca2e30945596772741e4d4ef">setMin</a> (double min)</td></tr>
<tr class="separator:a35fe1998ca2e30945596772741e4d4ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae74aaac65cb42852e8c7a009737f6bd2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#ae74aaac65cb42852e8c7a009737f6bd2">setMax</a> (double max)</td></tr>
<tr class="separator:ae74aaac65cb42852e8c7a009737f6bd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5eba0731b1901cbd73d00ea5bd8a068"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#ad5eba0731b1901cbd73d00ea5bd8a068">getImage</a> ()</td></tr>
<tr class="separator:ad5eba0731b1901cbd73d00ea5bd8a068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a053899a7fe594a2acf66f86cde1f244b"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a053899a7fe594a2acf66f86cde1f244b">getFormat</a> ()</td></tr>
<tr class="separator:a053899a7fe594a2acf66f86cde1f244b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae029016a8e875287272108f01c75168a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#ae029016a8e875287272108f01c75168a">getClickAddDelta</a> ()</td></tr>
<tr class="separator:ae029016a8e875287272108f01c75168a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99ae22a1f508166a42be81a6f4b9ffdf"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a99ae22a1f508166a42be81a6f4b9ffdf">getMin</a> ()</td></tr>
<tr class="separator:a99ae22a1f508166a42be81a6f4b9ffdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab63ea2e166a34432b7e53e12e8d9b4a8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#ab63ea2e166a34432b7e53e12e8d9b4a8">getMax</a> ()</td></tr>
<tr class="separator:ab63ea2e166a34432b7e53e12e8d9b4a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ae435256e1888f04a74aec74cbb50d437"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_value.html">TImageValue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#ae435256e1888f04a74aec74cbb50d437">cast</a> (long nativeObj)</td></tr>
<tr class="separator:ae435256e1888f04a74aec74cbb50d437"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc40471ee1e19e0ddecc3ca527bacc65"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#acc40471ee1e19e0ddecc3ca527bacc65">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:acc40471ee1e19e0ddecc3ca527bacc65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58ffe02809498510e2e37cb59b9ce489"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_value.html">TImageValue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_value.html#a58ffe02809498510e2e37cb59b9ce489">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a58ffe02809498510e2e37cb59b9ce489"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>图片值控件。</p>
<p>可以用图片来表示如电池电量、WIFI信号强度和其它各种数值的值。</p>
<p>其原理如下：</p>
<p>1.把value以format为格式转换成字符串。 2.把每个字符与image(图片文件名前缀)映射成一个图片名。 3.最后把这些图片显示出来。</p>
<p>如果设置click_add_delta为非0，那么点击时自动增加指定的增量，值超过最大值时回到最小值, 或者值超过最小值时回到最大值。</p>
<p>image_value_t是widget\_t的子类控件，widget_t的函数均适用于image_value_t控件。</p>
<p>在xml中使用"image\_value"标签创建图片值控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">image_value</span>  <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;num_&quot;</span> /&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/image_value.xml">image_value</a></p>
<p>在c代码中使用函数image_value_create创建图片值控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/image_value.c">image_value demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框等等，不过一般情况并不需要。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4376109625a189b22ec6e358d798c89d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4376109625a189b22ec6e358d798c89d">&#9670;&nbsp;</a></span>TImageValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageValue.TImageValue </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ae435256e1888f04a74aec74cbb50d437"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae435256e1888f04a74aec74cbb50d437">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_image_value.html">TImageValue</a> awtk.TImageValue.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a58ffe02809498510e2e37cb59b9ce489"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58ffe02809498510e2e37cb59b9ce489">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_image_value.html">TImageValue</a> awtk.TImageValue.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为image_value对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>image_value对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>image_value对象。 </dd></dl>

</div>
</div>
<a id="acc40471ee1e19e0ddecc3ca527bacc65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc40471ee1e19e0ddecc3ca527bacc65">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TImageValue.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建image_value对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ae029016a8e875287272108f01c75168a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae029016a8e875287272108f01c75168a">&#9670;&nbsp;</a></span>getClickAddDelta()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageValue.getClickAddDelta </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>点击时加上一个增量。 </p>

</div>
</div>
<a id="a053899a7fe594a2acf66f86cde1f244b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a053899a7fe594a2acf66f86cde1f244b">&#9670;&nbsp;</a></span>getFormat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TImageValue.getFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>数值到字符串转换时的格式，缺省为"%d"。 </p>

</div>
</div>
<a id="ad5eba0731b1901cbd73d00ea5bd8a068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5eba0731b1901cbd73d00ea5bd8a068">&#9670;&nbsp;</a></span>getImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TImageValue.getImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>图片名称的前缀。 </p>

</div>
</div>
<a id="ab63ea2e166a34432b7e53e12e8d9b4a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab63ea2e166a34432b7e53e12e8d9b4a8">&#9670;&nbsp;</a></span>getMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageValue.getMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大值(如果设置了click_add_delta，到达最大值后回到最小值)。 </p>

</div>
</div>
<a id="a99ae22a1f508166a42be81a6f4b9ffdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99ae22a1f508166a42be81a6f4b9ffdf">&#9670;&nbsp;</a></span>getMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageValue.getMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最小值(如果设置了click_add_delta，到达最小值后回到最大值)。 </p>

</div>
</div>
<a id="a7a6169a428829e86dfd525310d39b1a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a6169a428829e86dfd525310d39b1a3">&#9670;&nbsp;</a></span>setClickAddDelta()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageValue.setClickAddDelta </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>delta</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置点击时加上的增量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delta</td><td>增量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a990a3616d13f4f86262e392eb66fa44f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a990a3616d13f4f86262e392eb66fa44f">&#9670;&nbsp;</a></span>setFormat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageValue.setFormat </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置格式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>格式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6aa2c6c37a37924b9a763809dfe41b54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6aa2c6c37a37924b9a763809dfe41b54">&#9670;&nbsp;</a></span>setImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageValue.setImage </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置图片前缀。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>图片前缀。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae74aaac65cb42852e8c7a009737f6bd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae74aaac65cb42852e8c7a009737f6bd2">&#9670;&nbsp;</a></span>setMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageValue.setMax </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a35fe1998ca2e30945596772741e4d4ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35fe1998ca2e30945596772741e4d4ef">&#9670;&nbsp;</a></span>setMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageValue.setMin </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置最小值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a35faeaf6aa25b746a8d9e4b743be10e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35faeaf6aa25b746a8d9e4b743be10e5">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageValue.setValue </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TImageValue.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
